/*
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2023-12-01 14:29:48
 * @LastEditors: xinqiao lxq1990.0716@qq.com
 * @LastEditTime: 2024-01-04 17:52:07
 * @FilePath: \partal\src\config\menu\indes.ts
 * @Description: 菜单
 */

import { getDevelop, getAllDevelop } from './modules/develop'
import { getComponent, getAllComponent } from './modules/component'
import design from './modules/design'
import project from './modules/project'
import { PLANTTYPE_ENUM } from '@/enum/globalEnum'

export const getAllMenus = async () => [ getAllDevelop(), await getAllComponent(), design, project ]

export const getDevelopMenus = (plantType: PLANTTYPE_ENUM) => getDevelop(plantType)

export const getComponentMenus = async (plantType: PLANTTYPE_ENUM) => await getComponent(plantType)

export const getDesignMenus = () => design

export const getProjectMenus = () => project
